// pages/home/home.js
Page({
  data:{
    thumb:'',
    nickname:'',
    orders:[],
    hasAddress:false,
    address:{}
  },
    
    onShow(){
    var self = this;
    wx.getStorage({
      key: 'individual',
      success: function(res){
        self.setData({
          hasAddress: true,
          address: res.data
        })
      }
    })
    }
  })